const fs = require('fs');
const child_process = require('child_process');
var workerProcess = child_process.spawn('node' ,[ './support.js'] );

try{
    var tx = {
        source:"deleteApplication#nature01:gee18619383-6992-44a3-9a43-4b01e97a7da0"
    }
    var username = tx.source ;
    var op_index = tx.source.indexOf("#") ;
    var user_index = tx.source.indexOf(":") ;
    username = username.substring( op_index+1, user_index ) ;
    console.log( username ) ;
    process.title = "test main"
    console.log("process.title:"+  process.title  ) ;
    //startProcess() ;
}catch (e){
    console.log(""+e) ;
}

while(true ){
   var i = 0 ;
    i = 3 ;
   // break ;
}


function startProcess()  {
    workerProcess.stdout.on('data', function(data){
        console.log("ffff"+data) ;
    });

    workerProcess.on('close', function(m) {
        console.log("ffff") ;
    });
}